package com.luo.stock.service;

import com.luo.stock.vo.resp.PageResult;
import com.luohai.stock.pojo.entity.SysUser;
import com.luohai.stock.pojo.vo.*;

import java.util.List;
import java.util.Map;

/**
 * @Description
 * @Author 奥观海
 * @Date 2024/9/15
 */
public interface UserService {
    R<LoginRespVo> login(LoginReqVo vo);

    R<Map<String, String>> getCaptchaCode();

    R<PageResult<SysUserVo>> getUsersPageVo(UsersPageVo usersPageVo);

    R<String> addUser(SysUser sysUser);


    R<RoleVo> getUserRole(String userId);

    R<String> setRoles(String userId, List<String> roleIds);

    R<String> deleteUser(List<Long> userIds);

    R<SysUserVo> getOneUser(String userId);

    R<SysUserVo> updateOneUser(SysUser user);
}
